<extend name="en_us:Public:base" />
<block name="title">
    <title>QRInn - Channel settings</title>
</block>
<block name="extendHead">
    <link rel="stylesheet" type="text/css" href="/Public/dist/Home/common_control.css?rev=65393a524028c7e3b76e961a08059c7d">
</block>
<block name="document">
    <div id="doc" class="container-above-md">
        <include file="en_us:Public:Include_control_navbar" navbar-menu-setting="active" />
        <div id="doc-body" class="row">
            <include file="en_us:Public:Include_setting_side" doc-side-channel="active" />
            <div id="doc-center">
                <div class="content-panel">
                    <div class="content-panel-header">
                        <div class="content-panel-title">Channel settings
                        </div>
                    </div>
                    <div class="content-panel-body">
                        <div class="content-panel-help">The default list of commonly used source channel, can be deleted or added, but you can only add 10 pcs.</div>
                        <div class="tag-list clearfix">
                            <volist name="hotelchannel" id="info">
                                <div class="tag-item" <if condition='$info.type eq $deletable'>data-value="{$info.id}"</if>>
                                    <div class="tag-item-inner">
                                        <div class="nowrap-content">{$info.name}</div>
                                        <if condition='$info.type eq $deletable'>
                                            <span data-toggle="modal" data-target="#deleteModal" class="iconfont icon-minus text-accent deleteBtn"></span>
                                        </if>
                                    </div>
                                </div>
                            </volist>
                            <div class="tag-item">
                                <input type="text" class="form-control pull-left" id="addName" autocomplete="off" maxlength="15" placeholder="+Add channel" value="">
                                <button type="button" class="pull-left btn-primary btn-raised btn-square glyphicon glyphicon-plus ulite-js-btn" id="submitAdd"></button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--end of doc-center-->
        </div>
        <!--end of doc body-->
    </div>
    <!--end of doc-->
    <div class="modal fade" data-backdrop="static" id="deleteModal">
        <div class="modal-dialog modal-confirm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="btn close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <div class="modal-title">Delete channel</div>
                </div>
                <div class="modal-body">
                    Removing a distribution channel may cause your statistics to go wrong. Are you sure you want to delete it?
                </div>
                <div class="modal-footer">
                    <div class="form-horizontal form-sm">
                        <div class="form-group">
                            <div class="col-xs-10 col-xs-offset-2">
                                <div class="help-block inline-help-block inline-help-block-right"></div>
                                <button type="button" class="btn-sm btn-primary btn-raised" id="submitDelete">OK</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
<block name="extendFootJs">
    <script type="text/javascript" src="/Public/dist/Home/common_control.js?rev=b0ccaee5f3f00af011a31069395d22ec"></script>
    <script type="text/javascript" src="/Public/dist/Home/HotelPage/channel.js?rev=5ae122493615302eb102d8a554bc8e0d"></script>
</block>
